package com.derbysoft.dswitch.adapter.ihg.web.action.admin.requestlog;

import com.derbysoft.dswitch.adapter.ihg.common.domain.RequestCode;
import com.derbysoft.dswitch.adapter.ihg.common.domain.ResponseStatus;

public class RequestLogCondition {

    private String id;

    private RequestCode code;

    private String date;

    private String taskId;

    private String hotelCode;

    private String erspNo;

    private ResponseStatus responseStatus;

    private Long minSpentTime;

    private Long maxSpentTime;


    public Long getMinSpentTime() {
        return minSpentTime;
    }

    public void setMinSpentTime(Long minSpentTime) {
        this.minSpentTime = minSpentTime;
    }

    public Long getMaxSpentTime() {
        return maxSpentTime;
    }

    public void setMaxSpentTime(Long maxSpentTime) {
        this.maxSpentTime = maxSpentTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public RequestCode getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = RequestCode.fromRequest(code);
    }

    public void setCode(RequestCode code) {
        this.code = code;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getHotelCode() {
        return hotelCode;
    }

    public void setHotelCode(String hotelCode) {
        this.hotelCode = hotelCode;
    }

    public String getErspNo() {
        return erspNo;
    }

    public void setErspNo(String erspNo) {
        this.erspNo = erspNo;
    }

    public ResponseStatus getResponseStatus() {
        return responseStatus;
    }

    public void setResponseStatus(ResponseStatus responseStatus) {
        this.responseStatus = responseStatus;
    }
}
